/**
 * 对象拷贝
 * @param source
 * @param target
 */
export function copy<S, T extends S>(source: S, target: T) {
  if (source && target) {
    for (let key of Object.keys(source)) {
      target[key] = source[key]
    }
  }
}